﻿
namespace TLang.Values
{
    using Ast;

    public class Closure : Value
    {
        public Fun fun;
        public Scope properties;
        public Scope env;

        public Closure(Fun fun, Scope properties, Scope env)
        {
            this.fun = fun;
            this.properties = properties;
            this.env = env;
        }


        public override string ToString()
        {
            return fun.ToString();
        }
    }
}
